<?PHP
global $conf;

$media =& new media;
$media->post=$_POST;
$media->files=$_FILES;
$post=$_POST;

		if(!empty($_GET['content_id']))
		{
			$content_id=$_GET['content_id'];
		}
		if(!empty($_POST['content_parent']))
		{
	
			$content_id=$_POST['content_parent'];
		}
		

if($_POST['cmd']=='add' && !empty($_FILES['media_1']))
{
	$media->content_id=$_GET['content_parent'];
	$media->multiple=TRUE;

	$media->add_image();
	
}


?>